package com.macken.wow.dao;

import java.util.List;

import com.macken.wow.entity.CharacterInfo;
import com.macken.wow.util.DaoSupport;

public class CharacterDao {
	public static final CharacterDao instance = new CharacterDao();
	private CharacterDao() {

	}
	public List<CharacterInfo> getRoles(int account) {
		System.out.println(account);
		String sql = "select * from characters where account=?";
		List<CharacterInfo> list = DaoSupport.charDb.query(sql, CharacterInfo.rowMapper, account);
		return list;
	}
}
